package com.zhou.gof.group.singleton;

/**
 * @author zhoudong
 * @title: SingletonTest
 * @projectName user-app
 * @description: TODO
 * @date 2019/5/29 14:58
 */
public class SingletonTest {
    public static void main(String[] args) {
        Singleton.getInstance().msg(); // 饿汉式
        SingletonIdler.getInstance().msg(); // 懒汉式
        SingletonEnum.INSTANCE.msg(); // 枚举
    }
}
